Skip to main content

1. Linked List Traversal

Think of self as a baby. it will have right to call anyone his mom, he calls another node his mom. this is done by setting its self.next

Code Block

self ka matlab hai jo is class ka object future me banega, vo

Code Block

self.next = nextval it should be read as class ke object ka next = nexrval hai ye nextval ek parameter hai means jab class ka object banega vo apna nextval chun sakta hai just like previous class me person apna parent chun sakta tha.

Code Block